{extend name='index/index' /}

{block name='main'}
<link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<div id="tpl-echarts"></div>
<div class="tpl-content-wrapper">

    <div class="container-fluid am-cf">
        <div class="row">
            <div class="am-u-sm-12 am-u-md-12 am-u-lg-9">
                <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 表单 <small>Amaze UI</small></div>
                <p class="page-header-description">Amaze UI 有许多不同的表格可用。</p>
            </div>
            <div class="am-u-lg-3 tpl-index-settings-button">
                <button type="button" class="page-header-button"><span class="am-icon-paint-brush"></span> 设置</button>
            </div>
        </div>

    </div>

    <div class="row-content am-cf">


        <div class="row">

            <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                <div class="widget am-cf">
                    <div class="widget-head am-cf">
                        <div class="widget-title am-fl">企业认证</div>
                        <div class="widget-function am-fr">
                            <a href="javascript:;" class="am-icon-cog"></a>
                        </div>
                    </div>
                    <div class="widget-body am-fr">

                        <form class="am-form tpl-form-line-form" action="{:url('vip_agent/Vip/doeditrealname')}" enctype="multipart/form-data" method="post">
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">企业名称： <span class="tpl-form-line-small-title"></span></label>
                                <div class="am-u-sm-9">
                                    <input type="text" name="name" class="tpl-form-input" id="user-name" value="{$list.name}" placeholder="请输入企业名称">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">组织机构代码： <span class="tpl-form-line-small-title"></span></label>
                                <div class="am-u-sm-9">
                                    <input type="text" name="IDnumber" class="tpl-form-input" id="user-name" value="{$list.IDnumber}" placeholder="请输入组织机构代码">
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">企业logo： <span class="tpl-form-line-small-title"></span></label>
                                <div class="am-u-sm-9">
                                    {if condition="$list.IDpositive != ''"}
                                    <img src="{:Website}/upload/personal/{$list.IDpositive}" class="tp  tpl-table-line-img " data-toggle="modal" data-target="#myModal" alt="">
                                    {/if}
                                    <input id="doc-form-file" type="file"  name="IDpositive" >
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label for="user-name" class="am-u-sm-3 am-form-label">企业营业执照： <span class="tpl-form-line-small-title"></span></label>
                                <div class="am-u-sm-9">
                                    {if condition="$list.IDback != ''"}
                                    <img src="{:Website}/upload/personal/{$list.IDback}" class="tp  tpl-table-line-img " data-toggle="modal" data-target="#myModal" alt="">
                                    {/if}
                                    <input id="doc-form-file" type="file"  name="IDback" >
                                </div>
                            </div>
                            {if condition="$list.status != 3"}
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-form-label">状态： <span class="tpl-form-line-small-title"></span></label>
                                <div class="am-u-sm-9">
                                    {if condition="$list.status == 0"} 审核中
                                    {elseif condition="$list.status == 1"/} 有效
                                    {elseif condition="$list.status == 2" /} 无效
                                    {/if}
                                </div>
                            </div>
                            {/if}



                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3">
                                    <button class="am-btn am-btn-primary tpl-btn-bg-color-success ">确认更改</button>
                                </div>
                            </div>
                        </form>

                        <div class="modal fade" id="myModal" tabindex="-1" role="dialog" style="margin-top: 15%;" aria-labelledby="myModalLabel">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                        <h4 class="modal-title" id="myModalLabel">查看详情</h4>
                                    </div>
                                    <div class="modal-body">
                                        <img id="big_img"  alt="" width="100%" height="100%">
                                    </div>
                                    <div class="modal-footer">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                        <!--<button type="button" class="btn btn-primary">Save changes</button>-->
                                    </div>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>



    </div>
</div>
<script>
    $('.tp').click(function () {
        console.log(this);
        var src=this.src;
        console.log(src);
        $('#big_img').attr('src',this.src);

    })


</script>


{/block}